As far as i've undestood,for playing an MP3 file using waveOut functions i have to proceed as with the WAV files,but with the difference that it must be passed , to the waveOutOpen function , a WAVEFORMATEXTENSIBLE structure rather than a WAVEFORMATEX one
in WAVEFORMATEX i set the wFormatTag field on WAVE_FORMAT_EXTENSIBLE rather than WAVE_FORMAT_PCM andCode:typedef struct { WAVEFORMATEX Format; union { WORD wValidBitsPerSample; WORD wSamplesPerBlock; WORD wReserved; } Samples; DWORD dwChannelMask; GUID SubFormat; } WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;
cbSize = sizeof(WAVEFORMATEXTENSIBLE)
The other fields of both structs have to be initialized as described in MSDN and almost all of them specify the audio signal characteristics,such as bits per sample,frequency etc...
My problem is the SubFormat field of WAVEFORMATEXTENSIBLE struct,which is the GUID of the MP3 format,i guess
How i obtain such a GUID? I searched google with "mp3 guid",but nothing
P.S. If you have the GUID give me it directly